#ifndef NICKEL_FRAMEWORK_JSPLUGINMANAGER_H_
#define NICKEL_FRAMEWORK_JSPLUGINMANAGER_H_

#include "v8.h"
#include "pluginmanager.h"

namespace nickel
{
	namespace framework
	{	
		using namespace v8;

		class PluginManager
		{
		public:
			PluginManager(nickel::core::PluginManager& orginalPluginManager);
			~PluginManager(void);
			Handle<Number> Load();
			void Unload(Handle<Number> pluginId);
			static Handle<ObjectTemplate> GetObjectTemplate();

		private:
			nickel::core::PluginManager m_OrginalPluginManager;
		};		
	}
}

#endif // NICKEL_FRAMEWORK_JSPLUGINMANAGER_H_